From f76fc971763d500bede5bfb4546540d79c5788f3 Mon Sep 17 00:00:00 2001 From: Tsanie Lily Date: Mon, 2 Dec 2024 17:14:07 +0800 Subject: [PATCH] luci-app-acme: `cfgvalue` does not receive the `set_value` parameter when it is called in `CBIValue.render`. Signed-off-by: Tsanie Lila (squashed + amended commit message) Closes #7443 Signed-off-by: Paul Donald --- .../luci-app-acme/htdocs/luci-static/resources/view/acme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js index 201a7ecead..d948762609 100644 --- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js +++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js @@ -484,7 +484,7 @@ return view.extend({ o.rmempty = false; o.optional = true; o.modalonly = true; - o.cfgvalue = function(section_id, set_value) { + o.cfgvalue = function(section_id) { var keylength = uci.get('acme', section_id, 'keylength'); if (keylength) { // migrate the old keylength to a new keytype @@ -497,7 +497,7 @@ return view.extend({ default: return ''; // bad value } } - return set_value; + return this.super('cfgvalue', arguments); }; o.write = function(section_id, value) { // remove old keylength -- 2.30.2